/*    */ package com.zimbra.cs.redolog;
/*    */ 
/*    */ import com.zimbra.common.util.ByteUtil;
/*    */ import java.io.DataOutput;
/*    */ import java.io.DataOutputStream;
/*    */ import java.io.IOException;
/*    */ import java.io.OutputStream;
/*    */ import java.io.RandomAccessFile;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class RedoLogOutput
/*    */ {
/*    */   private DataOutput mOUT;
/*    */   
/*    */   public RedoLogOutput(OutputStream os)
/*    */   {
/* 40 */     this.mOUT = new DataOutputStream(os);
/*    */   }
/*    */   
/*    */   public RedoLogOutput(RandomAccessFile raf) {
/* 44 */     this.mOUT = raf;
/*    */   }
/*    */   
/* 47 */   public void write(byte[] b) throws IOException { this.mOUT.write(b); }
/* 48 */   public void writeBoolean(boolean v) throws IOException { this.mOUT.writeBoolean(v); }
/* 49 */   public void writeByte(byte v) throws IOException { this.mOUT.writeByte(v); }
/* 50 */   public void writeShort(short v) throws IOException { this.mOUT.writeShort(v); }
/* 51 */   public void writeInt(int v) throws IOException { this.mOUT.writeInt(v); }
/* 52 */   public void writeLong(long v) throws IOException { this.mOUT.writeLong(v); }
/* 53 */   public void writeDouble(double v) throws IOException { this.mOUT.writeDouble(v); }
/*    */   
/*    */   public void writeUTF(String v) throws IOException {
/* 56 */     ByteUtil.writeUTF8(this.mOUT, v);
/*    */   }
/*    */   
/*    */   public void writeUTFArray(String[] v) throws IOException {
/* 60 */     if (v == null) {
/* 61 */       writeInt(-1);
/*    */     } else {
/* 63 */       writeInt(v.length);
/* 64 */       for (String s : v) {
/* 65 */         writeUTF(s);
/*    */       }
/*    */     }
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/redolog/RedoLogOutput.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */